/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.openbrew.openbrewrf;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author chapmand
 */
@Entity
@Table(name = "BeerInventory")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "BeerInventory.findAll", query = "SELECT b FROM BeerInventory b"),
    @NamedQuery(name = "BeerInventory.findByBIId", query = "SELECT b FROM BeerInventory b WHERE b.bIId = :bIId"),
    @NamedQuery(name = "BeerInventory.findByBIBId", query = "SELECT b FROM BeerInventory b WHERE b.bIBId = :bIBId"),
    @NamedQuery(name = "BeerInventory.findByBIHalf", query = "SELECT b FROM BeerInventory b WHERE b.bIHalf = :bIHalf"),
    @NamedQuery(name = "BeerInventory.findByBIQtr", query = "SELECT b FROM BeerInventory b WHERE b.bIQtr = :bIQtr"),
    @NamedQuery(name = "BeerInventory.findByBISix", query = "SELECT b FROM BeerInventory b WHERE b.bISix = :bISix"),
    @NamedQuery(name = "BeerInventory.findByBitt", query = "SELECT b FROM BeerInventory b WHERE b.bitt = :bitt"),
    @NamedQuery(name = "BeerInventory.findByBitw", query = "SELECT b FROM BeerInventory b WHERE b.bitw = :bitw"),
    @NamedQuery(name = "BeerInventory.findByBisf", query = "SELECT b FROM BeerInventory b WHERE b.bisf = :bisf")})
public class BeerInventory implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "BIId")
    private Integer bIId;
    @Basic(optional = false)
    @NotNull
    @Column(name = "BIBId")
    private int bIBId;
    @Basic(optional = false)
    @NotNull
    @Column(name = "BIHalf")
    private int bIHalf;
    @Basic(optional = false)
    @NotNull
    @Column(name = "BIQtr")
    private int bIQtr;
    @Basic(optional = false)
    @NotNull
    @Column(name = "BISix")
    private int bISix;
    @Basic(optional = false)
    @NotNull
    @Column(name = "BITT")
    private int bitt;
    @Basic(optional = false)
    @NotNull
    @Column(name = "BITW")
    private int bitw;
    @Basic(optional = false)
    @NotNull
    @Column(name = "BISF")
    private int bisf;

    public BeerInventory() {
    }

    public BeerInventory(Integer bIId) {
        this.bIId = bIId;
    }

    public BeerInventory(Integer bIId, int bIBId, int bIHalf, int bIQtr, int bISix, int bitt, int bitw, int bisf) {
        this.bIId = bIId;
        this.bIBId = bIBId;
        this.bIHalf = bIHalf;
        this.bIQtr = bIQtr;
        this.bISix = bISix;
        this.bitt = bitt;
        this.bitw = bitw;
        this.bisf = bisf;
    }

    public Integer getBIId() {
        return bIId;
    }

    public void setBIId(Integer bIId) {
        this.bIId = bIId;
    }

    public int getBIBId() {
        return bIBId;
    }

    public void setBIBId(int bIBId) {
        this.bIBId = bIBId;
    }

    public int getBIHalf() {
        return bIHalf;
    }

    public void setBIHalf(int bIHalf) {
        this.bIHalf = bIHalf;
    }

    public int getBIQtr() {
        return bIQtr;
    }

    public void setBIQtr(int bIQtr) {
        this.bIQtr = bIQtr;
    }

    public int getBISix() {
        return bISix;
    }

    public void setBISix(int bISix) {
        this.bISix = bISix;
    }

    public int getBitt() {
        return bitt;
    }

    public void setBitt(int bitt) {
        this.bitt = bitt;
    }

    public int getBitw() {
        return bitw;
    }

    public void setBitw(int bitw) {
        this.bitw = bitw;
    }

    public int getBisf() {
        return bisf;
    }

    public void setBisf(int bisf) {
        this.bisf = bisf;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (bIId != null ? bIId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof BeerInventory)) {
            return false;
        }
        BeerInventory other = (BeerInventory) object;
        if ((this.bIId == null && other.bIId != null) || (this.bIId != null && !this.bIId.equals(other.bIId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.openbrew.openbrewrf.BeerInventory[ bIId=" + bIId + " ]";
    }
    
}
